package com.example.springboot01.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zrd
 * @since 2022-05-16
 */
@Getter
@Setter
@TableName("account")
@ApiModel(value = "Account对象", description = "")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("nick_name")
    private String nickName;

    @TableField("gender")
    private String gender;

    @TableField("telephone")
    private String telephone;

    @TableField("email")
    private String email;

    @TableField("image")
    private String image;
    /**
     * 无参构造
     */
    public Account() {
        super();
    }
    /**
     * 构造方法
     * @param name
     * @param nickName
     * @param gender
     * @param telephone
     * @param email
     * @param image
     */
    public Account(String name, String nickName, String gender, String telephone, String email, String image) {
        this.userName = name;
        this.nickName = nickName;
        this.gender = gender;
        this.telephone = telephone;
        this.email = email;
        this.image = image;
    }

}
